package com.example.event_resource_java.authority.controller;


import com.example.event_resource_java.authority.dao.JzPermission;
import com.example.event_resource_java.authority.server.IJzPermissionService;
import com.example.event_resource_java.authority.server.impl.JzPermissionServiceImpl;
import com.example.event_resource_java.commons.util.ApiResult;
import com.example.event_resource_java.commons.vo.MatchRequestVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 资源库前台权限表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-09-29
 */
@Api("用户权限")
@RestController
@RequestMapping("/permission")
public class JzPermissionController {
    @Autowired
    private IJzPermissionService jzPermissionService;

    // 权限判断
    @GetMapping("/judge")
    public ApiResult<Boolean> getMatchRequestParam(JzPermission jzPermission) {
        return ApiResult.success(jzPermissionService.judge(jzPermission));
    }


}
